#coding:utf-8
# -*- coding: utf-8 -*-
#@Time : 2020/12/4 21:03
#@Author: 王鹏-wangpeng99
#@File : Test.py

import re

aa="volt:0.00 current:144.90"
lst=aa.split(" ")
volt=lst[0].split(":")[-1]
print(volt)
current=lst[1].split(":")[-1]
print(current)


lst=re.findall(r"(?<=volt:)(\d+\.*\d*)",aa)
print(lst)
lst=re.findall(r"(?<=current:)(\d+\.*\d*)",aa)
print(lst)